#ifndef __MEDIASOURCE_H_
#define __MEDIASOURCE_H_

#include <streams.h>
#include "utility/asyncio.h"
#include "utility/asyncrdr.h"
#include <QtGui/qpainterpath.h>

class TMediaSource
{
public:
    TMediaSource(QString filePath = QString());
    virtual ~TMediaSource();
	void setFilePath(QString filePath);
    int read(unsigned char *buf, int dwBytesToRead);
    bool seek(long long pos);
    long long size();

protected:
    long long m_nCurOffset;
	QFile m_file;
};

#endif //__MEDIASOURCE_H_